package com.js.mytransitiondemo.after;

// Created by JS on 2021/7/6.

import android.os.Bundle;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

import com.bumptech.glide.Glide;
import com.bumptech.glide.request.RequestOptions;
import com.js.mytransitiondemo.databinding.ActivityAfterTwoBinding;
import com.js.mytransitiondemo.model.Effect;

public class AfterTwoActivity extends AppCompatActivity {

    private ActivityAfterTwoBinding binding;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        binding = ActivityAfterTwoBinding.inflate(getLayoutInflater());
        setContentView(binding.getRoot());

        Effect effect = (Effect) getIntent().getSerializableExtra("effect");
        Glide.with(this)
                .load(effect.getUri())
                .apply(new RequestOptions().skipMemoryCache(true))
                .into(binding.img);
    }
}
